//go:build wireinject
package wire

import (
	"gitee.com/DonHz/basic-go/wire/repository"
)

func InitRepository() *repository.UserRepository {
	// 传入初始化方法
	wire.Build(repository.NewUserRepository,dao.NewUserDao, InitDB)
	return new(repository.UserRepository)
}
